package com.mandy.datamerge.mock.entity;

import com.mandy.datamerge.annotation.DataMergeField;
import com.mandy.datamerge.mock.service.PositionService;
import lombok.Getter;
import lombok.Setter;

/**
 * @className User
 * @description 用户实体类
 * @author jianyongjie@126.com
 * @date 2020/7/2 10:37 下午
 * @version 1.0.0
 **/
@Getter
@Setter
public class User {
    private Long id;

    private String name;

    private Long positionId;

    @DataMergeField(service = PositionService.class, method = "getById", paramNames = {"positionId"}, extractField = "name")
    private String positionName;
}
